package otlTwitter;

import processing.core.*;
import twitter4j.*;
import otlTwitter.geoTwitterOtl;

import java.util.List;
import java.util.ArrayList;

public class testShell extends PApplet {

	private static final long serialVersionUID = 1;
	
	// ArrayList<Status> statuses = new ArrayList<Status>();

	public void setup(){
	    otlTwitter = new geoTwitterOtl()
	    
		size(1100,900);
		background(0);
		stroke(255);
	}
	
	ArrayList<Status> statuses =  new ArrayList<Status>();
	
	
	public void statusFill(){
// how do I pull Statuses from geoTwitterOtl  - 'static' error
	}
	
	public void draw(){ 
		textSize(11);
		text("Location Checks:", 60,40);
		text("# of: " + statuses.size() + " | locations: " + " | nulls: ", 40,80); // wherein configure() should return msg ...
			for (int i = 0; i < statuses.size(); i++) {
				Status status = statuses.get(i);
				text(status.getText(), 40, 100+15*(i+1));
				println(status.getText());
			}
	}
		
	//include to enable run as java application instead of applet
	public static void main(String args[]) {
		PApplet.main(new String[] { "--present", "otlTwitter.testShell" });
	}
	
}
